package com.sunny.design.decorator.login;

/**
 * @author Sunny
 * @date 2020/1/12
 */
public class LoginForTokenDecorator extends SignInForThirdDecorator {

    protected LoginForTokenDecorator(ISignInService signInService) {
        super(signInService);
    }

    public ResultMsg login(String token) {
        ResultMsg login = super.login(token, null);
        login.setMsg("使用Token" + login.getMsg());
        return login;
    }

    public ResultMsg register(String token) {
        ResultMsg register = super.register(token, null);
        register.setMsg("使用Token" + register.getMsg());
        return register;
    }
}
